原文:硅谷密探
硅谷Live / 实地探访 / 热点探秘 / 深度探讨
( Image : Killzone: Shadow Fall Review by Zac Davis )
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
artifactory_url = 'artifactory.com' # your artifactory instance | |
artifactory_username = 'username' # your username | |
artifcatory_password = 'password' # your password | |
content_type = 'application/java-archive' # your content-type header | |
filename = 'file' # your file to upload (in current working directory) | |
url = artifactory_url + '/' + filename # where we want the file stored on artifactory | |
# checksums are useful for making sure the upload was successful | |
headers = {'content-type': content_type, |
# This is the sshd server system-wide configuration file. See | |
# sshd_config(5) for more information. | |
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin | |
# The strategy used for options in the default sshd_config shipped with | |
# OpenSSH is to specify options with their default value where | |
# possible, but leave them commented. Uncommented options change a | |
# default value. |
using System; | |
public class Preconditions { | |
Preconditions() { } | |
public static T CheckNotNull<T>(T reference) { | |
return CheckNotNull(reference, null); | |
} | |
public static T CheckNotNull<T>(T reference, string message) { |
原文:硅谷密探
硅谷Live / 实地探访 / 热点探秘 / 深度探讨
( Image : Killzone: Shadow Fall Review by Zac Davis )
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\directory\background\shell\git_fork] | |
@="Open in &Fork" | |
"Icon"=hex(2):25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,00,41,\ | |
00,54,00,41,00,25,00,5c,00,46,00,6f,00,72,00,6b,00,5c,00,46,00,6f,00,72,00,\ | |
6b,00,2e,00,65,00,78,00,65,00,2c,00,30,00,00,00 | |
[HKEY_CLASSES_ROOT\directory\background\shell\git_fork\command] | |
@=hex(2):22,00,25,00,4c,00,4f,00,43,00,41,00,4c,00,41,00,50,00,50,00,44,00,41,\ |
{ | |
inputs = { | |
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = inputs @ { | |
self, | |
nixpkgs, | |
flake-utils, | |
... |
IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。
This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].
We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.
Each commit message consists of a header, a body, and a footer.
<?php | |
// This can be found in the Symfony\Component\HttpFoundation\Response class | |
const HTTP_CONTINUE = 100; | |
const HTTP_SWITCHING_PROTOCOLS = 101; | |
const HTTP_PROCESSING = 102; // RFC2518 | |
const HTTP_OK = 200; | |
const HTTP_CREATED = 201; | |
const HTTP_ACCEPTED = 202; |